package io.geely.push.modules.push.service.impl;

import java.util.Map;

import org.springframework.stereotype.Service;

import com.baomidou.mybatisplus.mapper.EntityWrapper;
import com.baomidou.mybatisplus.plugins.Page;
import com.baomidou.mybatisplus.service.impl.ServiceImpl;

import io.geely.push.common.utils.PageUtils;
import io.geely.push.common.utils.Query;
import io.geely.push.modules.push.dao.PushdataDao;
import io.geely.push.modules.push.entity.PushdataEntity;
import io.geely.push.modules.push.service.PushdataService;


@Service("pushdataService")
public class PushdataServiceImpl extends ServiceImpl<PushdataDao, PushdataEntity> implements PushdataService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        Page<PushdataEntity> page = this.selectPage(
                new Query<PushdataEntity>(params).getPage(),
                new EntityWrapper<PushdataEntity>()
        );

        return new PageUtils(page);
    }

}
